<?php
	class function_html_global{
		//untuk viewer warning dsbnya.
		function display_warning(){
			return;
		}
		
		function getWarnaSemester($obj1){
			//if( $obj1 < 3){ return "blue";}
			//elseif( $obj1 < 5){ return "red";}
			//elseif( $obj1 < 7){ return "green";}
			//else{ return "black"; }
			return ( $obj1 < 3 ? "blue" : ($obj1 < 5 ? "red" : ($obj1 < 7 ? "green" : "black" )));
		}
		
	}	
	
	$function_html = new function_html_global();
?>